//
//public void getCode1(String phone)throws WriterException, IOException {
//
//        //生成的二维码的路径
//        //  String QR_CODE_IMAGE_PATH = "D:\\IdeaProjects\\ruiyi-ms\\target\\classes\\META-INF\\resources\\code.png";
//        String QR_CODE_IMAGE_PATH = "D:\\ruoyi\\uploadPath\\avatar\\code.png";
//        //二维码中的内容
//        String QR_CODE_TEXT = phone;
//        //二维码图片的宽度
//        int WIDTH = 300;
//        //二维码图片的高度
//        int HEIGHT = 300;
//        QRCodeWriter qrCodeWriter = new QRCodeWriter();
//        Hashtable hints = new Hashtable();
//        hints.put(EncodeHintType.ERROR_CORRECTION, ErrorCorrectionLevel.H);//H最高容错等级
//        hints.put(EncodeHintType.CHARACTER_SET, "utf-8");
//        BitMatrix bitMatrix = qrCodeWriter.encode(QR_CODE_TEXT, BarcodeFormat.QR_CODE, WIDTH, HEIGHT, hints);
//        Path path = FileSystems.getDefault().getPath(QR_CODE_IMAGE_PATH);
//        MatrixToImageWriter.writeToPath(bitMatrix, "PNG", path);
//
//        }